                            <!-- Say Hello Starts -->
                            <div class="social">
                                <div class="container">                                    
                                    <!-- Social Icons Starts -->
                                    <ul class="ch-grid">
                                            <li>
                                                    <div class="ch-item">
                                                            <div class="ch-info">
                                                                    <div class="ch-info-front ch-img-1"></div>
                                                                    <div class="ch-info-back"> <img src="{{ theme_url }}/assets/images/social-icons/facebook_dark.png" alt="" /> </div>
                                                            </div>
                                                    </div>
                                            </li>
                                            <li>
                                                    <div class="ch-item">
                                                            <div class="ch-info">
                                                                    <div class="ch-info-front ch-img-2"></div>
                                                                    <div class="ch-info-back"> <img src="{{ theme_url }}/assets/images/social-icons/in_dark.png" alt="" /> </div>
                                                            </div>
                                                    </div>
                                            </li>
                                            <li>
                                                    <div class="ch-item">
                                                            <div class="ch-info">
                                                                    <div class="ch-info-front ch-img-3"></div>
                                                                    <div class="ch-info-back"> <img src="{{ theme_url }}/assets/images/social-icons/twitter02_dark.png" alt="" /> </div>
                                                            </div>
                                                    </div>
                                            </li>
                                            <li>
                                                    <div class="ch-item">
                                                            <div class="ch-info">
                                                                    <div class="ch-info-front ch-img-4"></div>
                                                                    <div class="ch-info-back"> <img src="{{ theme_url }}/assets/images/social-icons/dribbble_dark.png" alt="" /> </div>
                                                            </div>
                                                    </div>
                                            </li>
                                        </ul>
                                    <!-- Social Icons Ends --> 
                                    </div>
				</div>
				<!-- Say Hello Ends -->
				<!-- Copyright Start -->
                <div class="copyright" >
					<div class="container"><p> © 2013 nugrafiz all rights reserved.</p> </div>
                </div>
				<!-- Copyright Ends --> 
                        
                        
              		

		<!-- Le javascript
			================================================== --> 
		<!-- Placed at the end of the document so the pages load faster --> 
		<script src="{{ theme_url }}/assets/js/bootstrap/jquery.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-transition.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-alert.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-modal.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-dropdown.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-scrollspy.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-tab.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-tooltip.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-popover.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-button.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-collapse.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-carousel.js"></script> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-typeahead.js"></script> 
		<!--<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap.min.js" type="text/javascript"></script> --> 
		<script src="{{ theme_url }}/assets/js/bootstrap/bootstrap-lightbox.min.js"></script> 
		<!-- Preloader
			================================================== -->  
		<script type="text/javascript">
			jQuery(window).load(function() {
			    $('.doc-loader').fadeOut('slow'); 
			    //displayHints();
			    //addTweets();	
				});
		</script>            
		<!-- Retina Support 
			================================================== -->                       
		<script src="{{ theme_url }}/assets/js/retina/retina.js" type="text/javascript"></script>
        <!-- Twitter
			================================================== -->  
		<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> -->
		<script src="{{ theme_url }}/assets/js/twitter/twitlive-min.js"></script> 
		<script>
			// Customize menu (Built for Envato preview)
			$(document).ready(function() {
				$(".customizeWindow").click(function() {
					$(".customizeMe").css("display", "block");
				});
				
				$("#close").click(function() {
					$(".customizeMe").css("display", "none");
				});
				
				$("#custSearch").click(function() {
					$(".customizeMe").css("display", "none");
					$("#tweet_box h1 em").html($("#keyword").val());
				});
				
				//$(".tweets").liveTweets({operator: "#envato", liveTweetsToken: "xNj9VrwKjCd5MKeSgLxt61H6fwxwX9555WOVaY8ev0"});
			});
		</script>              
		<!-- Social Likes 
			==================================================  
		<script type="text/javascript">
			(function() {
			  var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
			  po.src = 'https://apis.google.com/<?php bloginfo('template_url')?>/js/plusone.js';
			  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
			})();
		</script> -->
		<!-- AJAX Contact Form
			================================================== --> 
		<script type="text/javascript" src="{{ theme_url }}/assets/js/contact/contact-form.js"></script> 
		<!-- Portfolio 
			================================================== --> 
		<script src="{{ theme_url }}/assets/js/isotope/jquery.js"></script> 
		<script src="{{ theme_url }}/assets/js/isotope/jquery.isotope.min.js"></script> 
		<script src="{{ theme_url }}/assets/js/isotope/Isotope-Filtering.js"></script> 
		<!--custom scrollbar-->
		<!-- Custom Scrollbar 
			================================================== -->   
		<script src="{{ theme_url }}/assets/js/nicescroll/jquery.nicescroll.min.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(document).ready(function() {    
			$("html").niceScroll();  // The document page (body)
			
			
			
			});
		</script> 
		<!-- Supersized Slider
			================================================== --> 
		<script type="text/javascript" src="{{ theme_url }}/assets/js/supersized/jquery.easing.min.js"></script> 
		<script type="text/javascript" src="{{ theme_url }}/assets/js/supersized/supersized.3.2.7.min.js"></script> 
		<script type="text/javascript" src="{{ theme_url }}/assets/js/supersized/supersized.shutter.min.js"></script> 
		<script type="text/javascript" src="{{ theme_url }}/assets/js/supersized/supersized-images.js"></script> 		
		<!-- Scroll To
			================================================== --> 
		<!--<script src="jquery.js"></script>--> 
		<script src="{{ theme_url }}/assets/js/nav/jquery.scrollTo.js"></script> 
		<script src="{{ theme_url }}/assets/js/nav/jquery.nav.js"></script> 
		<script>
                        
			$(document).ready(function() {
                                $('.nav').onePageNav({
				filter: ':not(.external)',
				scrollThreshold: 0.25
				});
                               <?php
                               /* HOME */
                               //get home slideshow image and text
                               $page_home = get_page_by_title( 'home' );
                               //echo $page_home->ID;
                               $array_json_slideshow_home = array();
                               if ( $page_home ) {
                                   $page_home_id = $page_home->ID;
                                   //var_dump(get_field('background_image_'.$i, $page_home_id));
                                   for($i=1; $i<=3; $i++) {
                                       $array_temp = array();
                                       //image
                                       $image = get_field('background_image_'.$i, $page_home_id);                                       
                                       if($image) {
                                           $array_temp['image'] = $image['url'];
                                           $array_temp['url'] = $image['url'];
                                       }
                                       //title
                                       $title = get_field('title_'.$i, $page_home_id);
                                       if($title)
                                           $array_temp['title'] = $title;
                                       //description
                                       $description = get_field('description_'.$i, $page_home_id);
                                       if($description)
                                           $array_temp['title'] = (isset($array_temp['title'])) ? $array_temp['title'] . '<div class="slidedescription">' . $description . '</div>' : $description;
                                       if(count($array_temp) > 0)
                                           $array_json_slideshow_home[] = $array_temp;
                                   }                                   
                               }
                               ?>
                               //big background
                               $.supersized({
				
					// Functionality
					slideshow               :   1,			// Slideshow on/off
					autoplay			:	1,			// Slideshow starts playing automatically
					start_slide             :   1,			// Start slide (0 is random)
					stop_loop			:	0,			// Pauses slideshow on last slide
					random			: 	0,			// Randomize slide order (Ignores start slide)
					slide_interval          :   3000,		// Length between transitions
					transition              :   1, 			// 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
					transition_speed		:	1000,		// Speed of transition
					new_window			:	1,			// Image links open in new window/tab
					pause_hover             :   0,			// Pause slideshow on hover
					keyboard_nav            :   1,			// Keyboard navigation on/off
					performance			:	1,			// 0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
					image_protect		:	1,			// Disables image dragging and right click with Javascript
															   
					// Size & Position						   
					min_width		       :   0,			// Min width allowed (in pixels)
					min_height		       :   0,			// Min height allowed (in pixels)
					vertical_center         :   1,			// Vertically center background
					horizontal_center       :   1,			// Horizontally center background
					fit_always			:	0,			// Image will never exceed browser width or height (Ignores min. dimensions)
					fit_portrait         	:   1,			// Portrait images will not exceed browser height
					fit_landscape		:   0,			// Landscape images will not exceed browser width
															   
					// Components							
					slide_links				:	'blank',	// Individual links for each slide (Options: false, 'num', 'name', 'blank')
					thumb_links				:	1,			// Individual thumb links for each slide
					thumbnail_navigation    :   0,			// Thumbnail navigation
					/*slides 					:  	[			// Slideshow Images
														{image : '<?php bloginfo('template_url')?>/image/slider/1.jpg', title : 'Community<div class="slidedescription">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div>', thumb : '', url : '<?php bloginfo('template_url')?>/image/slider/1.jpg'},
														{image : '<?php bloginfo('template_url')?>/image/slider/2.jpg', title : 'Environment<div class="slidedescription">Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam.</div>', thumb : '', url : '<?php bloginfo('template_url')?>/image/slider/2.jpg'}
												],*/
                                        slides : <?php echo json_encode($array_json_slideshow_home); ?>,   
												
					// Theme Options			   
					progress_bar			:	1,			// Timer for each slide							
					mouse_scrub				:	0
					
				});
                                
                                
                                <?php 
                                if(is_single()) :
                                ?>
                                    function resize_video_for_wh() {
                                        if($("#hidden_video_url").length > 0) {
                                            var div_width = $(".content .container .span8").width();
                                            var div_height = $(".content .container .span8").height();
                                            var video_html = $("#hidden_video_url").val();
                                            //alert(video_html);
                                            video_html = video_html.replace('f_width', div_width);
                                            video_html = video_html.replace('f_height', div_width / 2);
                                            //alert(video_html);
                                            $("#thumbnail_video_image").html(video_html);
                                        }
                                    }
                                    
                                    resize_video_for_wh();
                                       
                                    //alert(div_width);
                                    
                                    /*$(window ).resize(function() {
                                        //alert(23456);
                                        resize_video_for_wh();
                                    });*/
                                <?php
                                endif;
                                ?>
                               if($(".wpcf7-mail-sent-ok").length > 0) {
                                    $(".wpcf7-mail-sent-ok").hide();
                                    $(".done").css({'display' : 'block'});
                                }
                                
                                <?php
                                //add tour to select box
                                $taxonomy_locations = get_terms( 'locations', 'orderby=count&order=desc&hide_empty=0' );
                                if(count($taxonomy_locations)>0) :
                                    foreach($taxonomy_locations as $location) :
                                ?>
                                        $("#slt_tour").append('<option value="<?php echo $location->slug?>"><?php echo $location->name?></option>');
                                <?php
                                    endforeach;
                                endif;
                                ?>
                                $("#slt_price").hide();
                                $("#slt_tour").change(function() {
                                    //alert('hello');
                                    $('#slt_province option').each(function() {
                                        if ( $(this).val() != '' ) {
                                            $(this).remove();
                                        }
                                    });
                                    $('#slt_price option').each(function() {
                                        if ( $(this).val() != '' ) {
                                            $(this).remove();
                                        }
                                    });
                                    $("#price").val('');
                                    $("h1.price").html("$");
                                    var tours = $("#slt_tour :selected").val();
                                    if(tours!='') {
                                        //alert($("#slt_tour :selected").val());
                                        //ajax
                                        $.ajax({
                                            type: "POST",
                                            url: "<?php echo site_url();?>/ajax.php",
                                            data: { tour: tours }
                                            })
                                            .done(function( msg ) {
                                                //alert( "Data Saved: " + msg );
                                                var obj = jQuery.parseJSON( msg );
                                                //alert( obj.province  );
                                                $.each(obj.province, function(i, item) {
                                                    //alert(obj[i]);
                                                    $("#slt_province").append('<option value="'+ obj.province[i] +'">'+ obj.province[i] +'</option>');
                                                });
                                                $.each(obj.price, function(i, item) {
                                                    //alert(obj[i]);
                                                    $("#slt_price").append('<option value="'+ obj.price[i] +'">'+ obj.price[i] +'</option>');
                                                });
                                            });
                                    }                                        
                                });
                                
                                $("#slt_province").change(function() {
                                   var current_tour = $("#slt_tour :selected").val();                                   
                                   if(current_tour != '') {
                                       var index = $('#slt_province option:selected').prop('index');
                                       var price = $("#slt_price option").eq(index).val();
                                       $("#price").val( price );
                                       $("#slt_price option").eq(index).prop('selected', true);
                                       //alert(price);
                                       $("h1.price").css({'display' : 'block'}).html( "$" + price );
                                   }
                                   else {
                                       $("#price").val('');
                                       $("#slt_price option").eq(0).prop('selected', true);
                                       $("h1.price").css({'display' : 'none'});
                                   }                             
                                });
                                
			});                        
		</script> 
                <script>
                function test() 
                {
                    //alert($("#price").val());
                    var price = $("#price").val();
                    url = "<?php echo site_url();?>/paypal.php?price=" + (parseInt(price)/2);
                    //alert(url);
                    window.location = url;
                }               
                </script>
	</body>
</html>